Integrand size = 27, antiderivative size = 113 \[ \int \frac {x^4 (A+B x)}{a^2+2 a b x+b^2 x^2} \, dx=\frac {a^2 (3 A b-4 a B) x}{b^5}-\frac {a (2 A b-3 a B) x^2}{2 b^4}+\frac {(A b-2 a B) x^3}{3 b^3}+\frac {B x^4}{4 b^2}-\frac {a^4 (A b-a B)}{b^6 (a+b x)}-\frac {a^3 (4 A b-5 a B) \log (a+b x)}{b^6} \]
a^2*(3*A*b-4*B*a)*x/b^5-1/2*a*(2*A*b-3*B*a)*x^2/b^4+1/3*(A*b-2*B*a)*x^3/b^ 3+1/4*B*x^4/b^2-a^4*(A*b-B*a)/b^6/(b*x+a)-a^3*(4*A*b-5*B*a)*ln(b*x+a)/b^6
Time = 0.05 (sec) , antiderivative size = 107, normalized size of antiderivative = 0.95 \[ \int \frac {x^4 (A+B x)}{a^2+2 a b x+b^2 x^2} \, dx=\frac {-12 a^2 b (-3 A b+4 a B) x+6 a b^2 (-2 A b+3 a B) x^2+4 b^3 (A b-2 a B) x^3+3 b^4 B x^4+\frac {12 a^4 (-A b+a B)}{a+b x}+12 a^3 (-4 A b+5 a B) \log (a+b x)}{12 b^6} \]
(-12*a^2*b*(-3*A*b + 4*a*B)*x + 6*a*b^2*(-2*A*b + 3*a*B)*x^2 + 4*b^3*(A*b - 2*a*B)*x^3 + 3*b^4*B*x^4 + (12*a^4*(-(A*b) + a*B))/(a + b*x) + 12*a^3*(- 4*A*b + 5*a*B)*Log[a + b*x])/(12*b^6)
Time = 0.32 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.148, Rules used = {1184, 27, 86, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x^4 (A+B x)}{a^2+2 a b x+b^2 x^2} \, dx\) |
\(\Big \downarrow \) 1184 |
\(\displaystyle b^2 \int \frac {x^4 (A+B x)}{b^2 (a+b x)^2}dx\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \int \frac {x^4 (A+B x)}{(a+b x)^2}dx\) |
\(\Big \downarrow \) 86 |
\(\displaystyle \int \left (-\frac {a^4 (a B-A b)}{b^5 (a+b x)^2}+\frac {a^3 (5 a B-4 A b)}{b^5 (a+b x)}-\frac {a^2 (4 a B-3 A b)}{b^5}+\frac {a x (3 a B-2 A b)}{b^4}+\frac {x^2 (A b-2 a B)}{b^3}+\frac {B x^3}{b^2}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {a^4 (A b-a B)}{b^6 (a+b x)}-\frac {a^3 (4 A b-5 a B) \log (a+b x)}{b^6}+\frac {a^2 x (3 A b-4 a B)}{b^5}-\frac {a x^2 (2 A b-3 a B)}{2 b^4}+\frac {x^3 (A b-2 a B)}{3 b^3}+\frac {B x^4}{4 b^2}\) |
(a^2*(3*A*b - 4*a*B)*x)/b^5 - (a*(2*A*b - 3*a*B)*x^2)/(2*b^4) + ((A*b - 2* a*B)*x^3)/(3*b^3) + (B*x^4)/(4*b^2) - (a^4*(A*b - a*B))/(b^6*(a + b*x)) - (a^3*(4*A*b - 5*a*B)*Log[a + b*x])/b^6
3.7.23.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_ .), x_] :> Int[ExpandIntegrand[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && ((ILtQ[n, 0] && ILtQ[p, 0]) || EqQ[p, 1 ] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))
Int[((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))^(n_.)*((a_) + (b_.)*(x_ ) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[1/c^p Int[(d + e*x)^m*(f + g*x )^n*(b/2 + c*x)^(2*p), x], x] /; FreeQ[{a, b, c, d, e, f, g, m, n}, x] && E qQ[b^2 - 4*a*c, 0] && IntegerQ[p]
Time = 0.12 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.03
method | result | size |
default | \(\frac {\frac {1}{4} x^{4} B \,b^{3}+\frac {1}{3} A \,b^{3} x^{3}-\frac {2}{3} B a \,b^{2} x^{3}-A a \,b^{2} x^{2}+\frac {3}{2} B \,a^{2} b \,x^{2}+3 A \,a^{2} b x -4 a^{3} B x}{b^{5}}-\frac {a^{3} \left (4 A b -5 B a \right ) \ln \left (b x +a \right )}{b^{6}}-\frac {a^{4} \left (A b -B a \right )}{b^{6} \left (b x +a \right )}\) | \(116\) |
norman | \(\frac {\frac {B \,x^{5}}{4 b}-\frac {a \left (4 A \,a^{3} b -5 B \,a^{4}\right )}{b^{6}}+\frac {\left (4 A b -5 B a \right ) x^{4}}{12 b^{2}}-\frac {a \left (4 A b -5 B a \right ) x^{3}}{6 b^{3}}+\frac {a^{2} \left (4 A b -5 B a \right ) x^{2}}{2 b^{4}}}{b x +a}-\frac {a^{3} \left (4 A b -5 B a \right ) \ln \left (b x +a \right )}{b^{6}}\) | \(118\) |
risch | \(\frac {B \,x^{4}}{4 b^{2}}+\frac {A \,x^{3}}{3 b^{2}}-\frac {2 B a \,x^{3}}{3 b^{3}}-\frac {A a \,x^{2}}{b^{3}}+\frac {3 B \,a^{2} x^{2}}{2 b^{4}}+\frac {3 A \,a^{2} x}{b^{4}}-\frac {4 a^{3} B x}{b^{5}}-\frac {4 a^{3} \ln \left (b x +a \right ) A}{b^{5}}+\frac {5 a^{4} \ln \left (b x +a \right ) B}{b^{6}}-\frac {a^{4} A}{b^{5} \left (b x +a \right )}+\frac {a^{5} B}{b^{6} \left (b x +a \right )}\) | \(133\) |
parallelrisch | \(-\frac {-3 B \,x^{5} b^{5}-4 A \,x^{4} b^{5}+5 B \,x^{4} a \,b^{4}+8 A \,x^{3} a \,b^{4}-10 B \,x^{3} a^{2} b^{3}+48 A \ln \left (b x +a \right ) x \,a^{3} b^{2}-24 A \,x^{2} a^{2} b^{3}-60 B \ln \left (b x +a \right ) x \,a^{4} b +30 B \,x^{2} a^{3} b^{2}+48 A \ln \left (b x +a \right ) a^{4} b -60 B \ln \left (b x +a \right ) a^{5}+48 A \,a^{4} b -60 a^{5} B}{12 b^{6} \left (b x +a \right )}\) | \(156\) |
1/b^5*(1/4*x^4*B*b^3+1/3*A*b^3*x^3-2/3*B*a*b^2*x^3-A*a*b^2*x^2+3/2*B*a^2*b *x^2+3*A*a^2*b*x-4*a^3*B*x)-a^3*(4*A*b-5*B*a)*ln(b*x+a)/b^6-a^4*(A*b-B*a)/ b^6/(b*x+a)
Time = 0.34 (sec) , antiderivative size = 164, normalized size of antiderivative = 1.45 \[ \int \frac {x^4 (A+B x)}{a^2+2 a b x+b^2 x^2} \, dx=\frac {3 \, B b^{5} x^{5} + 12 \, B a^{5} - 12 \, A a^{4} b - {\left (5 \, B a b^{4} - 4 \, A b^{5}\right )} x^{4} + 2 \, {\left (5 \, B a^{2} b^{3} - 4 \, A a b^{4}\right )} x^{3} - 6 \, {\left (5 \, B a^{3} b^{2} - 4 \, A a^{2} b^{3}\right )} x^{2} - 12 \, {\left (4 \, B a^{4} b - 3 \, A a^{3} b^{2}\right )} x + 12 \, {\left (5 \, B a^{5} - 4 \, A a^{4} b + {\left (5 \, B a^{4} b - 4 \, A a^{3} b^{2}\right )} x\right )} \log \left (b x + a\right )}{12 \, {\left (b^{7} x + a b^{6}\right )}} \]
1/12*(3*B*b^5*x^5 + 12*B*a^5 - 12*A*a^4*b - (5*B*a*b^4 - 4*A*b^5)*x^4 + 2* (5*B*a^2*b^3 - 4*A*a*b^4)*x^3 - 6*(5*B*a^3*b^2 - 4*A*a^2*b^3)*x^2 - 12*(4* B*a^4*b - 3*A*a^3*b^2)*x + 12*(5*B*a^5 - 4*A*a^4*b + (5*B*a^4*b - 4*A*a^3* b^2)*x)*log(b*x + a))/(b^7*x + a*b^6)
Time = 0.27 (sec) , antiderivative size = 119, normalized size of antiderivative = 1.05 \[ \int \frac {x^4 (A+B x)}{a^2+2 a b x+b^2 x^2} \, dx=\frac {B x^{4}}{4 b^{2}} + \frac {a^{3} \left (- 4 A b + 5 B a\right ) \log {\left (a + b x \right )}}{b^{6}} + x^{3} \left (\frac {A}{3 b^{2}} - \frac {2 B a}{3 b^{3}}\right ) + x^{2} \left (- \frac {A a}{b^{3}} + \frac {3 B a^{2}}{2 b^{4}}\right ) + x \left (\frac {3 A a^{2}}{b^{4}} - \frac {4 B a^{3}}{b^{5}}\right ) + \frac {- A a^{4} b + B a^{5}}{a b^{6} + b^{7} x} \]
B*x**4/(4*b**2) + a**3*(-4*A*b + 5*B*a)*log(a + b*x)/b**6 + x**3*(A/(3*b** 2) - 2*B*a/(3*b**3)) + x**2*(-A*a/b**3 + 3*B*a**2/(2*b**4)) + x*(3*A*a**2/ b**4 - 4*B*a**3/b**5) + (-A*a**4*b + B*a**5)/(a*b**6 + b**7*x)
Time = 0.19 (sec) , antiderivative size = 123, normalized size of antiderivative = 1.09 \[ \int \frac {x^4 (A+B x)}{a^2+2 a b x+b^2 x^2} \, dx=\frac {B a^{5} - A a^{4} b}{b^{7} x + a b^{6}} + \frac {3 \, B b^{3} x^{4} - 4 \, {\left (2 \, B a b^{2} - A b^{3}\right )} x^{3} + 6 \, {\left (3 \, B a^{2} b - 2 \, A a b^{2}\right )} x^{2} - 12 \, {\left (4 \, B a^{3} - 3 \, A a^{2} b\right )} x}{12 \, b^{5}} + \frac {{\left (5 \, B a^{4} - 4 \, A a^{3} b\right )} \log \left (b x + a\right )}{b^{6}} \]
(B*a^5 - A*a^4*b)/(b^7*x + a*b^6) + 1/12*(3*B*b^3*x^4 - 4*(2*B*a*b^2 - A*b ^3)*x^3 + 6*(3*B*a^2*b - 2*A*a*b^2)*x^2 - 12*(4*B*a^3 - 3*A*a^2*b)*x)/b^5 + (5*B*a^4 - 4*A*a^3*b)*log(b*x + a)/b^6
Time = 0.27 (sec) , antiderivative size = 126, normalized size of antiderivative = 1.12 \[ \int \frac {x^4 (A+B x)}{a^2+2 a b x+b^2 x^2} \, dx=\frac {{\left (5 \, B a^{4} - 4 \, A a^{3} b\right )} \log \left ({\left | b x + a \right |}\right )}{b^{6}} + \frac {B a^{5} - A a^{4} b}{{\left (b x + a\right )} b^{6}} + \frac {3 \, B b^{6} x^{4} - 8 \, B a b^{5} x^{3} + 4 \, A b^{6} x^{3} + 18 \, B a^{2} b^{4} x^{2} - 12 \, A a b^{5} x^{2} - 48 \, B a^{3} b^{3} x + 36 \, A a^{2} b^{4} x}{12 \, b^{8}} \]
(5*B*a^4 - 4*A*a^3*b)*log(abs(b*x + a))/b^6 + (B*a^5 - A*a^4*b)/((b*x + a) *b^6) + 1/12*(3*B*b^6*x^4 - 8*B*a*b^5*x^3 + 4*A*b^6*x^3 + 18*B*a^2*b^4*x^2 - 12*A*a*b^5*x^2 - 48*B*a^3*b^3*x + 36*A*a^2*b^4*x)/b^8
Time = 0.06 (sec) , antiderivative size = 173, normalized size of antiderivative = 1.53 \[ \int \frac {x^4 (A+B x)}{a^2+2 a b x+b^2 x^2} \, dx=x\,\left (\frac {2\,a\,\left (\frac {2\,a\,\left (\frac {A}{b^2}-\frac {2\,B\,a}{b^3}\right )}{b}+\frac {B\,a^2}{b^4}\right )}{b}-\frac {a^2\,\left (\frac {A}{b^2}-\frac {2\,B\,a}{b^3}\right )}{b^2}\right )+x^3\,\left (\frac {A}{3\,b^2}-\frac {2\,B\,a}{3\,b^3}\right )-x^2\,\left (\frac {a\,\left (\frac {A}{b^2}-\frac {2\,B\,a}{b^3}\right )}{b}+\frac {B\,a^2}{2\,b^4}\right )+\frac {\ln \left (a+b\,x\right )\,\left (5\,B\,a^4-4\,A\,a^3\,b\right )}{b^6}+\frac {B\,x^4}{4\,b^2}+\frac {B\,a^5-A\,a^4\,b}{b\,\left (x\,b^6+a\,b^5\right )} \]